// 用户处理模块
const express = require("express");

const router = express.Router();

const reqComments_handler = require("../controller/req_comment");

// 导入验证表单数据中间件
const expressJoi = require("@escook/express-joi");
// 导入规则验证对象

router.post("/addreqcomment", reqComments_handler.addReqComments);
router.get("/getreqcomment", reqComments_handler.getReqComments);
router.post("/updatereqcomLike", reqComments_handler.updateReqLike);
router.get("/finduserreqcomlike", reqComments_handler.findUserReqCommentLike);
router.get("/getmycomreq", reqComments_handler.getMyComReq);
router.delete("/deltemycom", reqComments_handler.delteMyCom);

module.exports = router;
